TreeView for WinForms | ComponentOne
C1.Win.Collections.ObjectModel Namespace / ObservableDictionary<TKey,TValue> Class / ContainsKey Method
The key to locate in the ObservableDictionary<TKey,TValue>.

In This Topic
    ContainsKey Method (ObservableDictionary<TKey,TValue>)
    In This Topic
    Determines whether the ObservableDictionary<TKey,TValue> contains an element with the specified key.
    Syntax
    'Declaration
     
    
    Public Function ContainsKey( _
       ByVal key As TKey _
    ) As Boolean
    public bool ContainsKey( 
       TKey key
    )

    Parameters

    key
    The key to locate in the ObservableDictionary<TKey,TValue>.

    Return Value

    true if the ObservableDictionary<TKey,TValue> contains an element with the key; otherwise, false.
    See Also